﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QueryData;

public class 异步查询
{
    async void MyMethod()
    {
        using (var db = new BasicDbContext())
        {
            await db.BasicEntities.Where(x => x.Id > 3).ToListAsync();
        }
    }
}
